//package com.hqyj.config;
//
//import org.springframework.context.annotation.ConditionContext;
//import org.springframework.core.type.AnnotatedTypeMetadata;
//import org.springframework.context.annotation.Condition;
//public class ClassCondition implements Condition {
//    @Override
//    public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata
//            annotatedTypeMetadata) {
//        boolean mark =true;
//        try {
//            Class.forName("redis.clients.jedis.Jedis");
//        } catch (ClassNotFoundException e) {
//            mark= false;
//        }
//        return mark;
//    }
//}